package cn.stylefeng.guns.sys.modular.system.mapper;


import cn.stylefeng.guns.sys.modular.system.entity.BtyCwm;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyCwmParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyCwmResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-06-17
 */
public interface BtyCwmMapper extends BaseMapper<BtyCwm> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2021-06-17
     */
    List<BtyCwmResult> customList(@Param("paramCondition") BtyCwmParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2021-06-17
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyCwmParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2021-06-17
     */
    Page<BtyCwmResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyCwmParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2021-06-17
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyCwmParam paramCondition);

    /**
     * 获取当前bty_cwm表中最大财务码
     * @return
     */
    Integer getMaxCwm();

    void updateCwm(BtyCwm btyCwm);
}
